<?php
/**
 * Created by Command.
 * User: Vito
 */

declare (strict_types = 1);

namespace app\model;
use app\model\RoomLeaseRecord;
use app\common\Util;
class CheckIn extends RoomLeaseRecord
{
   
    // public function children(){
    //     return $this->hasManyThrough('User', 'RoomLeaseRecord','room_id','id','id','user_id');
    // }
    
    // public function payRecord(){
    //     return $this->hasOne('PayRecord','room_id')->order(['id'=>'desc']);
    // }

    /**
     * @Description: 全局查询
     * @author: xiayu <cb1071403016@126.com>
     * @param [type] $value
     * @Date: 2022-11-11 15:48:26
     * @version: 1.0.0
     * @return [type]
     */
    protected function getKeepFileAttr($value)
    {
        return Util::link($value);
    }
}
